import React,{useEffect} from 'react'
import {useDispatch,useSelector} from 'react-redux'
import {getShopcartListAsync} from '../store/async/shopcartAsync'
export default function ShopCart() {
  const dispatch=useDispatch()
  const list=useSelector((state)=>{
    return state.shopcartList
  })
  useEffect(()=>{
    dispatch(getShopcartListAsync)
  },[])
  return (
    <div>
        {JSON.stringify(list)}
    </div>
  )
}
